package com.houmeiyuan.huiguniang.modles.domain;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

public class OrderItem implements Serializable {
    private Integer id;

    private Integer orderId;
    //商品ID
    @NotNull(message = "商品id不能为空")
    private Integer goodsId;
    //商品数量
    @NotNull(message =  "商品数量不能为空")
    private Integer goodsNumber;
    //商品单价
    @NotNull(message =  "商品单价不能为空")
    private Integer eachPrice;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getGoodsNumber() {
        return goodsNumber;
    }

    public void setGoodsNumber(Integer goodsNumber) {
        this.goodsNumber = goodsNumber;
    }

    public Integer getEachPrice() {
        return eachPrice;
    }

    public void setEachPrice(Integer eachPrice) {
        this.eachPrice = eachPrice;
    }
}
